/*
 * Algorithms.cpp
 *
 *  Created on: 22 Aug 2011
 *      Author: Allan
 */

#include "Algorithms.h"

const unsigned IndexOf(const string& s, const vector<string>& svec)
{
	return find(svec.begin(), svec.end(), s) - svec.begin();
}

const bool IsContained(const string& s, const vector<string>& svec)
{
	return IndexOf(s, svec) < svec.size();
}

